$(function () {
    window.onload = function () {
        $.ajax({
            url: 'http://localhost:3000/report/new',
            type: 'get',
            success: function (res) {
                var str = '';
                $.each(res, function (i, item) {
                    str += `
                    <li>
                        <img src="${item.img}">
                        <div class="div1">
                            <p class="pp1">
                                ${item.text}
                            </p>
                            <p class="pp2">
                                <span>${item.uName}</span> ${item.endTime}<span><img src="../CSS/img/zan.png">3 <img src="../CSS/img/reply.png">3</span>
                            </p>
                        </div>
                        <div class="div2">
                            <p>关于${item.text}还有 4 篇报告，点击查看</p>
                        </div>
                    </li>
                    `;
                })
                $('.section-zuo>ul').html(str);
                $('.more').click(function () {
                    $('.kuanZhong').css('height', 8600);
                    $('.more').css('display', 'none');
                })
            }
        })
    }
})